<template>
  <div>
    <Input v-model="name" />
  </div>
</template>

<script>
// 子组件 A.vue
export default {
  data() {
    return {
      name: "我是子组件的值"
    };
  },
  methods: {
    sayHello(obj) {
      this.name = obj;
    }
  }
};
</script>

<style>
</style>